package com.example.eeuse.model;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.MD5;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "t_veda_request")
@Data
@NoArgsConstructor
public class VedaRequestDto {

    @Column(name = "session")
    private String session;
    @Column(name = "sessions")
    private String sessions;
    @Column(name = "channel")
    private String channel;

    @Column(name = "search_date")
    private String searchDate;

    @Column(name = "dep")
    private String dep;

    @Column(name = "arr")
    private String arr;

    @Column(name = "date")
    private String date;

    @Column(name = "req_count")
    private int reqCount;

    public VedaRequestDto(String channel,String session,String arr,String date,String dep)
    {
        this.session=session;
        this.channel=channel;
    }
    @Id
    private String id;


    public void incReqCount()
    {
        reqCount++;
    }

}
